package com.CMS.client;

import java.util.List;

import com.CMS.server.domain.Language;
import com.CMS.server.domain.User;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface UserServiceAsync {
	
	void getUserHabilitado(String user,String pass, AsyncCallback<User> callback) throws Exception;

	void fetch(AsyncCallback<List<User>> callbak);
	
	void deleteUser(long id, AsyncCallback<Void> callback);
	
	void create(String alias, String pass, String mail, String description,
				long idRol, AsyncCallback<Void> callback);
	
	void update(String alias, String pass, String mail, String description,String rol, 
				boolean flagDelete, long id,AsyncCallback<Void> callback);
	
	void getLanguage(String alias,AsyncCallback<Language> callback);
	
	void setLanguage(String alias, String value, AsyncCallback<Void> callback);
}
